package com.citywithincity.utils;

public class RandomUtil {

	/**
	 * 
	 */
	public static String generageKey(){
		return MD5Util.md5Appkey(new StringBuilder().append(System.currentTimeMillis()*Math.random()).toString());
	}
	
	
	/**
	 * 生成验证码
	 * @return
	 */
	public static String generateCode(){
		return String.valueOf(100000 + (int)(Math.random() * (999999 - 100000)));
	}
}
